Timm Bäder [Tue, 4 Oct 2016 14:35:53 +0000 (16:35 +0200)]
scrolledwindow: Remove window-placement-set property
Timm Bäder [Tue, 4 Oct 2016 14:35:24 +0000 (16:35 +0200)]
scrolledwindow: Remove scrollbar-spacing and scrollbars-within-bevel
Timm Bäder [Tue, 4 Oct 2016 14:33:05 +0000 (16:33 +0200)]
scrolledwindow: Remove _add_with_viewport
Replaced by a normal gtk_container_add
Timm Bäder [Tue, 4 Oct 2016 13:46:01 +0000 (15:46 +0200)]
Remove GtkHSV
Timm Bäder [Tue, 4 Oct 2016 10:50:56 +0000 (12:50 +0200)]
Remove various deprecated GtkOrientable subclasses
Timm Bäder [Tue, 4 Oct 2016 10:34:10 +0000 (12:34 +0200)]
Remove gtkcolorsel(dialog).{c,h}
Timm Bäder [Tue, 4 Oct 2016 08:41:25 +0000 (10:41 +0200)]
window: Remove _set/_get_opacity
Timm Bäder [Tue, 4 Oct 2016 08:30:57 +0000 (10:30 +0200)]
window: Remove resize grip API
Timm Bäder [Tue, 4 Oct 2016 08:30:07 +0000 (10:30 +0200)]
Remove gtkfontsel.{c,h}
Timm Bäder [Tue, 4 Oct 2016 08:03:52 +0000 (10:03 +0200)]
dialog: Remove alternative button order API
Timm Bäder [Mon, 3 Oct 2016 18:02:21 +0000 (20:02 +0200)]
Remove GtkHandleBox
Timm Bäder [Mon, 3 Oct 2016 16:25:18 +0000 (18:25 +0200)]
Remove GtkImageMenuItem
Timm Bäder [Mon, 3 Oct 2016 16:08:53 +0000 (18:08 +0200)]
reftests: Remove GtkMisc tests
Timm Bäder [Mon, 3 Oct 2016 15:54:51 +0000 (17:54 +0200)]
Fix a few css/a11y test cases
They were broken because of missing -icon-stock properties in GtkEntry
and GtkButton not creating an adjustment child anymore.
Timm Bäder [Mon, 3 Oct 2016 10:34:17 +0000 (12:34 +0200)]
Remove GtkMisc
Timm Bäder [Mon, 3 Oct 2016 10:34:30 +0000 (12:34 +0200)]
testfilechooserbutton: Remove GtkMisc API usage
Timm Bäder [Mon, 3 Oct 2016 10:31:47 +0000 (12:31 +0200)]
reftests: Remove celldenderer-pixbuf-stock
The stock properties tested here don't exist anymore.
Timm Bäder [Mon, 3 Oct 2016 09:03:47 +0000 (11:03 +0200)]
Remove GtkArrow
Timm Bäder [Mon, 3 Oct 2016 08:52:40 +0000 (10:52 +0200)]
shortcutswindow: Stop using GtkArrow
Timm Bäder [Mon, 3 Oct 2016 08:33:17 +0000 (10:33 +0200)]
Remove GtkStock API from GtkImage
Timm Bäder [Mon, 3 Oct 2016 08:20:22 +0000 (10:20 +0200)]
reftests: Remove GtkMisc properties from now non-misc widgets
Timm Bäder [Mon, 3 Oct 2016 07:57:57 +0000 (09:57 +0200)]
recentchoosermenu: Stop using GtkImageMenuItem
Timm Bäder [Mon, 3 Oct 2016 07:46:57 +0000 (09:46 +0200)]
toolbutton: Stop using GtkImageMenuItem
Timm Bäder [Mon, 3 Oct 2016 07:33:32 +0000 (09:33 +0200)]
testgtk: Remove GtkImageMenuItem usage
Timm Bäder [Mon, 3 Oct 2016 07:31:44 +0000 (09:31 +0200)]
testgtk: fix css
Timm Bäder [Sun, 2 Oct 2016 18:10:22 +0000 (20:10 +0200)]
testbuttons: Stop looking at use-stock property
Doesn't exist anymore. Instead, force the image to be visible on one of
the buttons.
Timm Bäder [Sun, 2 Oct 2016 17:54:37 +0000 (19:54 +0200)]
button: Remove _{get,set}_focus_click
Deprecated for the GtkWidget variant. Also remove some unused fields
from the GtkButtonPrivate struct.
Timm Bäder [Sun, 2 Oct 2016 17:47:25 +0000 (19:47 +0200)]
button: Remove deprecated style properties
Timm Bäder [Sun, 2 Oct 2016 17:46:52 +0000 (19:46 +0200)]
button: Remove deprecated signals from public API
Timm Bäder [Sun, 2 Oct 2016 17:03:29 +0000 (19:03 +0200)]
button: Remove GtkStock API
Timm Bäder [Sun, 2 Oct 2016 16:51:09 +0000 (18:51 +0200)]
tests: Remove teststockbuttonmenu
Timm Bäder [Sun, 2 Oct 2016 16:35:36 +0000 (18:35 +0200)]
Button: Remove alignment API
Timm Bäder [Sun, 2 Oct 2016 16:19:59 +0000 (18:19 +0200)]
label,image: Remove GtkMisc usage
Timm Bäder [Sun, 2 Oct 2016 15:37:22 +0000 (17:37 +0200)]
box: Remove 'padding' child property
Timm Bäder [Sun, 2 Oct 2016 07:15:27 +0000 (09:15 +0200)]
inspector: Remove object_title from css editor
It's unused
Timm Bäder [Sun, 2 Oct 2016 06:43:30 +0000 (08:43 +0200)]
Don't use GtkBox's center child in a few places
We can as well use a normal child and let it hexpand.
Benjamin Otte [Thu, 6 Oct 2016 21:55:53 +0000 (23:55 +0200)]
API: Remove gdk_window_set_background()
Backgrounds are always transparent black.
Benjamin Otte [Thu, 6 Oct 2016 21:39:05 +0000 (23:39 +0200)]
tests: Remove testwindows test
It wasn't drawing anything anymore...
Benjamin Otte [Thu, 6 Oct 2016 20:37:42 +0000 (22:37 +0200)]
API: Remove GtkStyle
All the remaining gtkrc.c stuff like GtkRcStyle goes with it.
Benjamin Otte [Thu, 6 Oct 2016 19:46:27 +0000 (21:46 +0200)]
settings: Pull in the RC parsing code
Benjamin Otte [Thu, 6 Oct 2016 17:59:53 +0000 (19:59 +0200)]
immodules: Move path code out of gtkrc
Benjamin Otte [Thu, 6 Oct 2016 14:41:41 +0000 (16:41 +0200)]
cellrendererspinner: Draw our own spinner
This is the GtkStyle code just moved.
Benjamin Otte [Thu, 6 Oct 2016 14:02:39 +0000 (16:02 +0200)]
API: Remove ability to set visuals on windows
And with it, gtk_widget_get_visual() and gtk_widget_set_visual() are
gone.
We now always use the RGBA visual (if available) and otherwise fall back
to the system visual.
Benjamin Otte [Mon, 3 Oct 2016 19:16:40 +0000 (21:16 +0200)]
API: Remove gtk_drag_dest_set_proxy()
Proxies were only used by GtkSocket.
Benjamin Otte [Mon, 3 Oct 2016 16:30:40 +0000 (18:30 +0200)]
API: Remove GtkPlug, GtkSocket and GtkWin32EmbedWidget
Benjamin Otte [Sun, 2 Oct 2016 01:02:10 +0000 (03:02 +0200)]
API: Remove gdk_window_set_composited()
And the related call gdk_display_supports_composite().
Benjamin Otte [Fri, 30 Sep 2016 17:27:38 +0000 (19:27 +0200)]
screen: Remove unused vfunc
GdkScreenClass.broadcast_client_message was unused, but a bunch of
backends still had functions (not) implementing it.
Benjamin Otte [Fri, 30 Sep 2016 03:14:53 +0000 (05:14 +0200)]
filechooserwidget: Query dpi from CssStyle
Benjamin Otte [Fri, 30 Sep 2016 03:11:19 +0000 (05:11 +0200)]
fontchooserwidget: Query dpi from CssStyle
Benjamin Otte [Fri, 30 Sep 2016 02:58:29 +0000 (04:58 +0200)]
API: screen: Stop storing font options
font options are only ever set by the GtkSettings object and only ever
used inside GTK, so just store them there.
Benjamin Otte [Fri, 30 Sep 2016 00:53:31 +0000 (02:53 +0200)]
API: Remove GDK_WA_CURSOR
The cursor was set using gdk_window_set_cursor() even in
gdk_window_new().
So instead of having yet another flag, just make the users of that flag
call gdk_window_set_cursor() directly after the window was created.
Benjamin Otte [Thu, 29 Sep 2016 20:23:51 +0000 (22:23 +0200)]
API: window: Remove suppport for changing wmclass_name/group
X11 was the only backend to support it and people can just override it
using XSetClassHint() directly.
The docs already advertised the function as "Do not use".
Keep the existing call to XSetClassHint() in place, so that we keep
setting the same values as in GTK3.
Timm Bäder [Tue, 4 Oct 2016 11:05:56 +0000 (13:05 +0200)]
Delete gtkvbox.{c,h}
Timm Bäder [Mon, 3 Oct 2016 17:52:23 +0000 (19:52 +0200)]
Remove GtkHBox
Benjamin Otte [Wed, 28 Sep 2016 15:09:41 +0000 (17:09 +0200)]
API: Remove GtkNumerableIcon
Benjamin Otte [Wed, 28 Sep 2016 14:53:17 +0000 (16:53 +0200)]
API: Remove -gtk_widget_get_root_window()
Benjamin Otte [Wed, 28 Sep 2016 00:52:25 +0000 (02:52 +0200)]
API: screen: Remove gdk_screen_make_display_name()
It's identical to gdk_display_get_name().
Benjamin Otte [Wed, 28 Sep 2016 00:16:53 +0000 (02:16 +0200)]
API: screen: Remove gdk_screen_get_active_window()
... and gdk_screen_get_window_stack().
Those functions were originally added in
5afb4f0f116f0e8a200dd55cc6688a957b4d397c but do not seem to be used as
they are not implemented anywhere but in X.
As GDK is not meant to fulfill window management functionality I'm going
to remove these functions without replacements.
Benjamin Otte [Fri, 9 Sep 2016 14:34:21 +0000 (16:34 +0200)]
API: gdk: Remove gdk_screen_get_number()
It's useless everywhere but in internal X11 code.
Benjamin Otte [Fri, 9 Sep 2016 12:53:18 +0000 (14:53 +0200)]
API: Remove gdk_screen_get_width() and gdk_screen_get_height()
... and gdk_screen_get_width_mm() and gdk_screen_get_height_mm() and
the shortcut counterparts that call these functions on the default
screen.
Modern display servers don't provide an ability to query the size of a
screen or display so we shouldn't allow that either.
Benjamin Otte [Fri, 9 Sep 2016 12:52:06 +0000 (14:52 +0200)]
display: Insist that backends implement the monitor vfuncs
We cannot fallback anymore once we remove the ability to query screen
size, and that's about to happen.
Benjamin Otte [Fri, 9 Sep 2016 12:49:12 +0000 (14:49 +0200)]
gdk: Insist axis.min_value < axis.max_value
Remove fallback code that would substitute screen size otherwise.
Benjamin Otte [Fri, 9 Sep 2016 12:48:33 +0000 (14:48 +0200)]
gdk: Require passing screen size to translate_screen_coord()
Benjamin Otte [Mon, 5 Sep 2016 23:24:13 +0000 (01:24 +0200)]
shooter: Use root window size instead of screen size
Avoids usage deprecated screen size.
Benjamin Otte [Mon, 5 Sep 2016 23:23:41 +0000 (01:23 +0200)]
testgtk: Remove feature unsupported in Wayland
Wayland doesn't allow positioning windows randomly, so don't try.
Benjamin Otte [Mon, 5 Sep 2016 01:09:39 +0000 (03:09 +0200)]
API: window: Remove geometry support
Benjamin Otte [Mon, 5 Sep 2016 01:09:20 +0000 (03:09 +0200)]
API: menu: Remove tearoff support
Benjamin Otte [Sun, 4 Sep 2016 19:53:20 +0000 (21:53 +0200)]
API: gdk: Remove monitor APIs on GdkScreen
Benjamin Otte [Sun, 4 Sep 2016 19:51:09 +0000 (21:51 +0200)]
API: Remove GtkStatusIcon
Benjamin Otte [Wed, 28 Sep 2016 00:51:36 +0000 (02:51 +0200)]
applaunchcontext: Ignore screen name
It's guaranteed to be identical to the display name.
Benjamin Otte [Wed, 28 Sep 2016 00:51:09 +0000 (02:51 +0200)]
inspector: Use display name instead of screen name
This is for future compatibility as they are guaranteed to be identical.
Benjamin Otte [Sun, 4 Sep 2016 19:52:55 +0000 (21:52 +0200)]
wayland: Use GdkMonitor APIs
Benjamin Otte [Sun, 4 Sep 2016 19:52:33 +0000 (21:52 +0200)]
x11: Use GdkMonitor APIs
Benjamin Otte [Sun, 4 Sep 2016 19:52:00 +0000 (21:52 +0200)]
gdk: Use GdkMonitor APIs
... instead of the old ones using GdkScreen
Benjamin Otte [Sun, 4 Sep 2016 19:51:41 +0000 (21:51 +0200)]
inspector: Port to GdkMonitor
Benjamin Otte [Sun, 4 Sep 2016 19:13:41 +0000 (21:13 +0200)]
tests: Port to GdkMonitor
Benjamin Otte [Sat, 3 Sep 2016 16:33:30 +0000 (18:33 +0200)]
display: Don't return NULL in get_primary_monitor()
Nobody ever does a NULL check there so all that causes is crashes. So
we better return a non-primary monitor than NULL.
Fixes gdk-wayland always returning NULL.
Benjamin Otte [Mon, 3 Oct 2016 19:26:20 +0000 (21:26 +0200)]
gdk: Fix docs typo
Benjamin Otte [Sun, 16 Oct 2016 16:07:39 +0000 (18:07 +0200)]
gdk: Get rid of unused variables
Aurimas Černius [Sat, 15 Oct 2016 19:07:36 +0000 (22:07 +0300)]
Updated Lithuanian translation
Matthias Clasen [Fri, 14 Oct 2016 15:15:27 +0000 (11:15 -0400)]
Avoid 0/FALSE confusion
Since this is supposedly exemplary code, lets get it right.
https://bugzilla.gnome.org/show_bug.cgi?id=772683
Alan Jenkins [Fri, 14 Oct 2016 11:16:07 +0000 (12:16 +0100)]
shortcutswindow: working version of set_section_name()
(testing before+after, it actually works now)
https://bugzilla.gnome.org/show_bug.cgi?id=772926
Matthias Clasen [Thu, 13 Oct 2016 19:00:56 +0000 (15:00 -0400)]
Add new gestures to gtk4-demo
Show the new single-finger swipe gestures in the builder
shortcuts example.
Felix Riemann [Thu, 13 Oct 2016 14:36:47 +0000 (16:36 +0200)]
GtkShortcutsShortcut: Support single finger swipe gestures
https://bugzilla.gnome.org/show_bug.cgi?id=772770
Jakub Steiner [Thu, 13 Oct 2016 10:09:55 +0000 (12:09 +0200)]
gestures: provide new artwork
- illustrations for single finger swiping left and right
https://bugzilla.gnome.org/show_bug.cgi?id=772770
Ben Iofel [Wed, 12 Oct 2016 20:13:32 +0000 (16:13 -0400)]
docs: replace gtk3 with gtk4 in man pages
Alan Jenkins [Thu, 13 Oct 2016 08:20:57 +0000 (09:20 +0100)]
scrolledwindow: fix leak of pan_gesture
https://bugzilla.gnome.org/show_bug.cgi?id=772859
Alan Jenkins [Wed, 12 Oct 2016 15:38:13 +0000 (16:38 +0100)]
headerbar: fix leak of label_sizing_box
Since the widget is not added to a container, we have the responsibility
to sink the initial floating reference, and ultimately to unref it.
https://bugzilla.gnome.org/show_bug.cgi?id=772859
Alan Jenkins [Wed, 12 Oct 2016 15:18:47 +0000 (16:18 +0100)]
headerbar: fix leak of separator
https://bugzilla.gnome.org/show_bug.cgi?id=772859
Alan Jenkins [Wed, 12 Oct 2016 17:03:43 +0000 (18:03 +0100)]
headerbar: fix leak of start_box/end_box
gtk_widget_destroy() removes widgets from their container. However
_internal_ widgets must be unref'ed using gtk_widget_unparent() instead.
This is symmetric with the fact that these widgets were ref'ed by direct
call to gtk_widget_set_parent(). It's also the method that was used in
gtk_headerbar_destroy().
https://bugzilla.gnome.org/show_bug.cgi?id=772859
Alan Jenkins [Wed, 12 Oct 2016 15:16:57 +0000 (16:16 +0100)]
shortcutsgroup: fix leak of title
like previous commit, albeit simpler this time
https://bugzilla.gnome.org/show_bug.cgi?id=772859
Alan Jenkins [Wed, 12 Oct 2016 12:33:39 +0000 (13:33 +0100)]
applicationwindow: fix leak of help_overlay
> Due to Gtk+ keeping a reference to the window internally,
> gtk_window_new() does not return a reference to the caller.
> To delete a GtkWindow, call gtk_widget_destroy().
Caller(s) aren't expecting a need to delete help_overlay themselves
once they've installed it. (E.g. see gtk_application_window_added()).
I didn't notice any direct precedents, but there's a parallel in the
current implementation of gtk_container_destroy() which uses
gtk_widget_destroy() on any added widget.
This avoids leaking 100s of kB per window, when I tested nautilus.
https://bugzilla.gnome.org/show_bug.cgi?id=772859
Christian Hergert [Wed, 12 Oct 2016 20:56:57 +0000 (13:56 -0700)]
menusectionbox: add support for "text-direction" attribute
This allows the use of a "text-direction" hint set to one of "none", "rtl",
or "ltr" to enforce the text direction of a "horizontal-buttons"
display-hint.
This is useful when a menu has buttons that map to physical space in the
UI and therefore must match the application widgetry.
https://bugzilla.gnome.org/show_bug.cgi?id=772775
Olivier Fourdan [Thu, 6 Oct 2016 14:49:39 +0000 (16:49 +0200)]
gdkwindow: configure native windows in move_native_children()
ClutterEmbed on Wayland uses a subsurface and relocates it on configure
events, but when placed within a scrolled window, no configure event is
emitted and the ClutterEmbed subsurface remains static.
Emit a configure event for native windows in GdkWindow's internal
move_native_children() so that custom widgets relying on configure
events such as ClutterEmbed can relocate their stuff.
Similarly, when switching to/from normal/maximized/fullscreen states
which change the shadows' size and possibly shows/hides a header bar,
we need to emit a configure event even if the abs_x/abs_y haven't
changed to make sure the subsurface is size appropriately.
https://bugzilla.gnome.org/show_bug.cgi?id=771320
https://bugzilla.gnome.org/show_bug.cgi?id=767713
Piotr Drąg [Wed, 12 Oct 2016 17:49:08 +0000 (19:49 +0200)]
Update Polish translation
Lapo Calamandrei [Wed, 12 Oct 2016 17:30:30 +0000 (19:30 +0200)]
Adwaita: dodge drop active style for window and decoration nodes
to hilight drop target there is a wildcard selector which turns
the border and shadow to green, this clearly shouldn't happen when
the whole window is a drop target.
Tom Tryfonidis [Tue, 11 Oct 2016 11:05:21 +0000 (11:05 +0000)]
Update Greek translation
(cherry picked from commit
e74dc54567e2363e283b7e5dd8e8e0e8d0b1c2aa)
Christian Hergert [Mon, 10 Oct 2016 20:52:50 +0000 (13:52 -0700)]
shortcuts: the accelerator should always be LTR
Even on RTL languages, we want the shortcut to be LTR so that we always
have <control> to the left of the accel keyval.
https://bugzilla.gnome.org/show_bug.cgi?id=772695
djb [Sun, 2 Oct 2016 22:16:46 +0000 (23:16 +0100)]
gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible
...by putting it in a stack. The busy_spinner and eject_button are
mutually exclusive, but only the latter was coded to ensure that its
visibility did not cause the rest of the row to reflow. By putting both
widgets in a stack and setting child_visible on that, the row allocates
enough space to show one - or none - at once, avoiding any misalignment.
https://bugzilla.gnome.org/show_bug.cgi?id=772345
https://bugzilla.gnome.org/show_bug.cgi?id=772348
Matthias Clasen [Mon, 10 Oct 2016 18:37:09 +0000 (14:37 -0400)]
Fix the build